<template>
	<view>
		<cu-custom :isBack="true" bgColor="bg-white solids-bottom">
			<block slot="content">
				{{banner.Cantavil}}
			</block>
			<block slot="right">
				<text class="cuIcon-like" style="font-size: 40upx;line-height: 60upx;" ></text>
			</block>
		</cu-custom>
		<view class="article-meta boxs">
			<text class="article-author f18 mb10">{{title}}</text>
			<view class="house-detail clearfix">
				<view class="w100">
					<label class="lable">建筑类型</label>
					<text class="text">{{banner.Category?banner.Category:"-"}}</text>
				</view>
				<view class="w100">
					<label class="lable">建筑年代</label>
					<text class="text">{{banner.SellTime?banner.SellTime:"-"}}</text>
				</view>
				<view class="w100">
					<label class="lable"><span style="letter-spacing: 14upx;">总户</span>数</label>
					<text class="text">{{banner.NumberOfNeighborhood?banner.NumberOfNeighborhood:"-"}}</text>
				</view>
				<view class="w100">
					<label class="lable"><span style="letter-spacing: 14upx;">绿化</span>率</label>
					<text class="text">{{banner.ForestRate?banner.ForestRate:"-"}}</text>
				</view>
				<!-- <view class="w100">
					<label class="lable"><span style="letter-spacing: 14upx;">容积</span>率</label>
					<text class="text">{{banner.ForestRate?banner.ForestRate:"-"}}</text>
				</view>
				<view class="w100">
					<label class="lable">物业公司</label>
					<text class="text">向上地产</text>
				</view> -->
				<view class="w100">
					<label class="lable">小区地址</label>
					<text class="text">{{banner.Address?banner.Address:"-"}}</text>
				</view>
			</view>
		</view>
		<view class="YZBox">
			<navigator url="../../brokers/brokers" class="YZBtn cu-avatar-box ZXBtn">
				咨询经纪人了解更多
			</navigator>
		</view>
		<!-- <view class="article-meta">
			<view>
				<rich-text :nodes="htmlString"></rich-text>
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '怡景豪园',
				htmlString:"",
				banner:null
			};
		},
		onLoad:function(event){
			try {
				this.banner = JSON.parse(decodeURIComponent(event.detailDate));
			} catch (error) {
				this.banner = JSON.parse(event.detailDate);
			}
			console.info(this.banner);
			this.htmlString = `<div style="color:#333;">1、多维交通，瞬息往来</div>
			<p style="color:#666;text-indent: 2em;">内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</p>
			<div style="color:#333;">2、有爱活力MALL，爱玩爱运动</div>
			<p style="color:#666;text-indent: 2em;">内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</p>
			<div style="color:#333;">3、百变空间，投资无忧</div>
			<p style="color:#666;text-indent: 2em;">内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</p>`;
		},
	}
</script>

<style lang="less">
	.article-meta {
		padding: 30upx 30upx;
		color: #333333;
		display: block;
		background: #FFFFFF;
	}
	.house-detail{
		.w100,.w50{
			float: left;
			width: 100%;
			display: flex;
			margin-bottom: 10upx;
			.lable{
				display: inline-block;
				padding-right: 10upx;
				color: #999999;
				box-sizing: content-box;
			}
			.text{
				flex: 1;
				padding-left: 10upx;
			}
		}
		.w50{
			width: 50%;
			&.right{
				.lable{
					width: 112upx
				}
			}
		}
	}
	.house-lable{
		.house-lable-box{
			display: inline-block;
			background:#f2f2f2;
			color:#999999;
			border-radius: 6upx;
			padding: 10upx 16upx;
			line-height: 1;
			float: left;
			margin: 0 10upx 10upx 0;
			font-size: 24upx;
		}
	}
	.article-author{
		font-size: 48upx;
		display: block;
		line-height: 1.5;
		color: #333333;
		&.f18{
			font-size: 36upx;
			font-weight: 500;
		}
		&.f16{
			font-size: 32upx;
			line-height: 2;
			font-weight: 600;
		}
		&.f14{
			font-size: 28upx;
			font-weight: normal;
			span{
				color: #248ae5;
			}
		}
	}
	.mb10{
		margin-bottom: 20upx;
	}
	.YZBtn{
		background: #FBFBFB;
		margin: 20upx 40upx;
		padding: 20upx;
		border-radius: 10upx;
		box-shadow: 0px 0px 5px #dddddd;
		&.ZXBtn{
			padding: 10upx;
			background: #f4f4f5;
			text-align: center;
			color: #366699;
		}
	}
</style>
